import request from '@/utils/request'

// 查询客户押单列表
export function listCustOrder(query) {
  return request({
    url: '/financial/custOrder/list',
    method: 'get',
    params: query
  })
}

// 查询客户押单详细
export function getCustOrder(id) {
  return request({
    url: '/financial/custOrder/' + id,
    method: 'get'
  })
}

// 新增客户押单
export function addCustOrder(data) {
  return request({
    url: '/financial/custOrder',
    method: 'post',
    data: data
  })
}

// 修改客户押单
export function updateCustOrder(data) {
  return request({
    url: '/financial/custOrder',
    method: 'put',
    data: data
  })
}

// 删除客户押单
export function delCustOrder(id) {
  return request({
    url: '/financial/custOrder/' + id,
    method: 'delete'
  })
}
